﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTicket.Model;

namespace OpenTicket.Repositories
{
    public class StaticTestProductRepository:IProductRepository
    {
        #region IProductRepository Members

        public IQueryable<OpenTicket.Model.Product> GetAll()
        {
            var list = new List<Model.Product>();
            
           for(int i=0;i<30;i++)
               list.Add(new Product() { ProductCode = i.ToString(), ProductCost = (i * 50),ProductName = "Name"+1 });
            return list.AsQueryable();

        }

        public OpenTicket.Model.Product Save(OpenTicket.Model.Product product)
        {
            throw new NotImplementedException();
        }

        public void DeleteProduct(OpenTicket.Model.Product product)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
